#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import teacher_blueprint
from api_1_0.teacherResource.teacherResource import TeacherResource
from api_1_0.teacherResource.teacherOtherResource import TeacherAddResource, TeacherUpdateResource, \
    TeacherUpdatePasswordResource, TeacherImgUpdateResource

api = Api(teacher_blueprint)

api.add_resource(TeacherResource, '/teacher/<teacher_id>', '/teacher', endpoint='teacher')

# 注册教师账号
api.add_resource(TeacherAddResource, '/teacher/add', endpoint='add_teacher')

# 修改教师账号信息
api.add_resource(TeacherUpdateResource, '/teacher/update', endpoint='update_teacher')

# 修改教师密码
api.add_resource(TeacherUpdatePasswordResource, '/teacher/update/password', endpoint='update_teacherPassword')

# 修改教师头像
api.add_resource(TeacherImgUpdateResource, '/teacher/update/img', endpoint='update_teacherImg')